package com.example.livingadminmaster.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.livingadminmaster.pojo.Faculty;
import org.springframework.stereotype.Service;

import java.util.List;

public interface FacultyService extends IService<Faculty> {
    List<Faculty> getAllFaculties();
    Faculty getFacultyId(long faculty_id);
    Faculty getFacultyUsername(String username);
    List<Faculty> getFacultyGender(boolean gender);
    List<Faculty> getDepartment(String department);
    List<Faculty> getRoomNumber(String room_number);
    List<Faculty> getBuilding(String building);
    List<Faculty> getStatus(boolean status);
    int addFaculty(Faculty faculty);
    boolean deleteFaculty(long faculty_id);
    int updateFaculty(Faculty faculty);
    boolean updateStatus(long faculty_id,boolean status);

}
